package com.lucenten.collect.config.service;

import cn.quevo.common.entity.PageResult;
import com.lucenten.collect.config.entity.CollectConf;
import com.lucenten.collect.config.entity.dto.ThreadStation;
import com.lucenten.collect.config.entity.query.CollectConfQuery;

import java.util.Map;

/**
 * 采集设置 Service
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2019/04/27 11:04:02
 * @Copyright 东方浩星（北京）传媒科技有限公司版权所有.All Rights Reserved.
 */
public interface CollectConfService {

    /**
     * 根据ID获取采集设置
     *
     * @param collectConfQuery
     * @return
     * @author July july_sky@foxmail.com
     * @date 2019/04/27 11:04:02
     */
    Map<String,Object> getSinge(CollectConfQuery collectConfQuery);

    /**
     * 创建采集设置
     *
     * @param collectConf
     * @return
     * @author July july_sky@foxmail.com
     * @date 2019/04/27 11:04:02
     */
    Integer create(CollectConf collectConf);

    /**
     * 更新采集设置
     *
     * @param collectConf
     * @return
     * @author July july_sky@foxmail.com
     * @date 2019/04/27 11:04:02
     */
    Integer update(CollectConf collectConf);

    /**
     * 分页获取采集设置
     *
     * @param collectConfQuery
     * @return
     * @author July july_sky@foxmail.com
     * @date 2019/04/27 11:04:02
     */
    PageResult<Map<String,Object>> getPage(CollectConfQuery collectConfQuery);

    /**
     * 根据编码获取采集设置
     *
     * @param collectConfQuery
     * @return
     * @author July july_sky@foxmail.com
     * @date 2019/04/27 11:04:02
     */
    ThreadStation getCollectConfByCode(CollectConfQuery collectConfQuery);

}
